Optimizing control flow in loops using interval and dependence analysis
نویسندگان
چکیده
We present a novel loop transformation technique, particularly well suited for optimizing embedded compilers, where an increase in compilation time is acceptable in exchange for significant performance increase. The transformation technique optimizes loops containing nested conditional blocks. Specifically, the transformation takes advantage of the fact that the Boolean value of the conditional expression, determining the true/false paths, can be statically analyzed using a novel interval analysis technique that can evaluate conditional expressions in the general polynomial form. Results from interval analysis combined with loop dependency information is used to partition the iteration space of the nested loop. In such cases, the loop nest is decomposed such as to eliminate the conditional test, thus substantially reducing the execution time. Our technique completely eliminates the conditional from the loops (unlike previous techniques) thus further facilitating the application of other optimizations and improving the overall speedup. Applying the proposed transformation technique on loop kernels taken from Mediabench, SPEC-2000, mpeg4, qsdpcm and gimp, on average we measured a 2.34X speedup when running on a UltraSPARC processor, a 2.92X speedup when running on an Intel Core Duo processor, a 2.44X speedup when running on a PowerPC G5 processor and a 2.04X speedup when running on an ARM9 processor. Performance improvement, taking the entire application into account, was also promising: for 3 selected applications (mpeg-enc, mpeg-dec and qsdpcm) we measured 15% speedup on best case (5% on average) for the whole application.
منابع مشابه
REALM: A Loop Memory Access Optimization Technique with Loop-Carried Data Dependence Analysis for DSP Applications
Reducing memory accesses is particularly important for DSP applications since they are widely used in embedded systems and need to be executed with high performance and low power consumption. In this paper, we focus on optimizing loops which are the most critical sections for DSP applications. We propose a machineindependent intermediate-code-level loop memory access optimization technique, REA...
متن کاملOptimal Operation of a DWC by Self-Optimizing Control: Active Vapor Split Approach
Dividing Wall Column(DWC) offers the large potential for operating and capital cost saving in compared with conventional distillation sequence. In the studied DWC in this study, the aid of Vmin diagrams, it is shown that without a suitable value for vapor split fraction bellow the dividing wall in different operating conditions, the energy requirement increases from optimal value and it wil...
متن کاملParametric and Termination-Sensitive Control Dependence
A parametric approach to control dependence is presented, where the parameter is any prefix-invariant property on paths in the control-flow graph. Existing control dependencies, both direct and indirect, can be obtained as instances of the parametric framework for particular properties on paths. A novel control dependence relation, called termination-sensitive control dependence, is obtained al...
متن کاملStructured Dataflow Analysis for Arrays and its Use in an Optimizing Compiler
SUMMARY We extend the well-known interval analysis method so that it can be used to gather global flow information for individual array elements. Data dependences between all array accesses in different basic blocks, different iterations of the same loop, and across different loops are computed and represented as labelled arcs in a program flow graph. This approach results in a uniform treatmen...
متن کاملParametric and Termination-Sensitive Control Dependence - Extended Abstract
A parametric approach to control dependence is presented, where the parameter is any prefix-invariant property on paths in the control-flow graph (CFG). Existing control dependencies, both direct and indirect, can be obtained as instances of the parametric framework for particular properties on paths. A novel control dependence relation, called termination-sensitive control dependence, is obtai...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Design Autom. for Emb. Sys.
دوره 13 شماره
صفحات -
تاریخ انتشار 2009